package com.bemyapp.model;

import android.content.Context;

import com.bemyapp.mp.MP;

public class Extract {

	private int id;
	private String pathToSample;
	private String french;
	private String english;
	private String movieName;
	private String actorName;
	
	private boolean repeatDone;
	private boolean translationDone;
	private String frenchTTS;
	private String englishTTS;
	
	public Extract(int _id, String _pathToSample, String _french,String _frenchTTS, String _english,String _englishTTS, String _movieName, String _actorName,	boolean _repeatDone, boolean _translationDone) {
		this.id = _id;
		this.pathToSample = _pathToSample;
		this.french = _french;
		this.frenchTTS = _frenchTTS;
		this.english = _english;
		this.englishTTS = _englishTTS;
		this.movieName = _movieName;
		this.actorName = _actorName;
		this.repeatDone = _repeatDone;
		this.translationDone = _translationDone;
	}
	
	public void play(Context context){
		MP.play(this.pathToSample,context);
	}
	
	public void playEnglish(Context c){
		MP.play(this.englishTTS, c);
	}

	public boolean isRepeatDone() {
		return repeatDone;
	}

	public String getFrenchTTS() {
		return frenchTTS;
	}

	public void setFrenchTTS(String frenchTTS) {
		this.frenchTTS = frenchTTS;
	}

	public void setRepeatDone(boolean repeatDone) {
		this.repeatDone = repeatDone;
	}

	public boolean isTranslationDone() {
		return translationDone;
	}

	public void setTranslationDone(boolean translationDone) {
		this.translationDone = translationDone;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getFrench() {
		return french;
	}

	public void setFrench(String french) {
		this.french = french;
	}

	public String getEnglish() {
		return english;
	}

	public void setEnglish(String english) {
		this.english = english;
	}

	public String getMovieName() {
		return movieName;
	}

	public void setMovieName(String movieName) {
		this.movieName = movieName;
	}

	public String getActorName() {
		return actorName;
	}

	public void setActorName(String actorName) {
		this.actorName = actorName;
	}
	
	

}
